@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/menu/form.js"]}){
<form id="menuForm" lay-filter="menuForm" class="layui-form model-form">
	<input name="id" type="hidden" value="${menu.id}" />
	<input name="pid" type="hidden" value="${menu.pid}" />
	<input name="projectId" type="hidden" value="${menu.projectId}" />
	<input name="levels" type="hidden" value="${menu.levels}" />
	<input name="viewStatus" type="hidden" value="${menu.viewStatus}" />

	<div class="layui-form-item">
		<label class="layui-form-label">名称<span style="color: red;">*</span></label>
		<div class="layui-input-block">
			<input name="resourceName" placeholder="请输入名称" type="text" class="layui-input" lay-verify="required" 
			value="${menu.resourceName}"
			maxlength="20" 
			required/>
		</div>
	</div>

	
	<div class="layui-form-item">
		<label class="layui-form-label">菜单类型<span style="color: red;">*</span></label>
		<div class="layui-input-block">
			<input type="radio" name="resourceType" value="1" title="菜单" ${menu.resourceType==1?'checked':''}/>
			<input type="radio" name="resourceType" value="2" title="按钮" ${menu.resourceType==2?'checked':''}/>
			<input type="radio" name="resourceType" value="3" title="API接口" ${menu.resourceType==3?'checked':''}/>
		</div>
	</div>
	<div class="layui-form-item">
        <label class="layui-form-label">菜单状态</label>
        <div class="layui-input-block">
			<input type="checkbox"  ${menu.status==1?'checked':''} name="status" lay-skin="switch" lay-filter="status"  lay-text="启用|禁用">
		</div>
    </div>
	<div class="layui-form-item">
		<label class="layui-form-label">请求地址<span style="color: red;">*</span></label>
		<div class="layui-input-block">
			<input id="resourcePath" name="resourcePath" placeholder="请输入请求地址" type="text" class="layui-input" autocomplete="off"
			value="${menu.resourcePath}"
			maxlength="256" 
			/>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">权限标识</label>
		<div class="layui-input-block">
			<input name="authIdentification" placeholder="权限标识，如sam:dept:list,sam:dept:tree" type="text" class="layui-input" value="${menu.authIdentification}" 
			maxlength="80" />
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">排序</label>
		<div class="layui-input-block">
			<input name="idx" placeholder="请输入排序" type="text" class="layui-input" value="${menu.idx}" />
		</div>
	</div>



	<div class="layui-form-item">
		<label class="layui-form-label">资源范围<i lay-tips="私有:数据行级限制开放,指定的人群对数据有读写的权限;<br>公开只读：所有数据全公开，指定的人群对限制的行级数据有读写的权限;<br>公开读写：所有数据全公开，有读写操作权限即可" lay-direction="1" class="layui-icon layui-icon-tips"></i></label>
		<div class="layui-input-block">

			<input type="radio" name="resourceScope" value="4" title="公开读写" ${menu.resourceScope==4?'checked':''}/>
			<input type="radio" name="resourceScope" value="2" title="公开只读" ${menu.resourceScope==2?'checked':''}/>
			<input type="radio" name="resourceScope" value="1" title="私有" ${menu.resourceScope==1?'checked':''}/>
		</div>
	</div>

	<div class="layui-form-item text-right">
		<button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
		<button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
	</div>
</form>
@}
